const contrl = require('../data/conn');

module.exports.topics = (req, res) => {
  res.render('./fll/all_topics');
}

module.exports.alltopics = (req, res) => {
  contrl.query('select * from topic', (eer, results) => {
    if (eer) return console.log(eer);
    res.json(results);
  })
}